package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.ArrayList;

/**
 * @Author silence.Z
 * @Date 2022/10/26 9:49
 * @PackageName:com.ruoyi.system.domain.vo
 * @ClassName: StructureVo
 * @Description: TODO
 * @Version 1.0
 */
public class SysCity {
	private String id;

	private String pid;

	private String name;

	private ArrayList<SysCity> children = new ArrayList<>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ArrayList<SysCity> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<SysCity> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", id)
				.append("pid", pid)
				.append("name", name)
				.append("children", children)
				.toString();
	}

	public SysCity(String id, String pid, String name, ArrayList<SysCity> children) {
		this.id = id;
		this.pid = pid;
		this.name = name;
		this.children = children;
	}

	public SysCity() {
	}
}
